<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>request获取表单数据</title>
</head>
<body>


<form action="/request2" method="post" >
    <table border="1px">
        <tr>
            <td>用户名:</td>
            <td><input name="username" type="text" size="30px" placeholder="请输入用户名，用户名不能是中文"></td>
        </tr>
        <tr>
            <td>密码:</td>
            <td><input name="password" type="password"></td>
        </tr>

        <tr>
            <td>性别:</td>
            <td>
                <input type="radio" name="sex" value="male" checked> 男
                <input type="radio" name="sex" value="female"> 女
            </td>
        </tr>

        <tr>
            <td>爱好:</td>
            <td>
                <input type="checkbox" checked name="hobby" value="coding"> coding
                <input type="checkbox" checked name="hobby" value="play game"> play game
                <input type="checkbox" name="hobby" value="sing"> sing
            </td>
        </tr>


        <tr>
            <td>日期框:</td>
            <td>
                <input type="date" name="date">
            </td>
        </tr>

        <tr>
            <td>省份:</td>
            <td>
                <select name="province" id="province">
                    <option value="henan"> 河南</option>
                    <option value="shanxi"> 山西</option>
                    <option selected value="hubei"> 湖北</option>
                </select>
            </td>
        </tr>



        <tr>
            <td>文本域:</td>
            <td>
                <textarea name="bak" id="" cols="35" rows="10"></textarea>
            </td>
        </tr>


        <!-- 不希望用户看到 但是希望传到后台的数据 -->
        <input type="hidden" name="userid" value="123">

        <tr align="center">
            <td colspan="2">
                <input type="submit" value="提交">

            </td>
        </tr>
    </table>

</form>
</body>
</html>